Release 10.1A: OpenEdge Development:
ADM Reference


disableWidget

Disables the object or objects identified in the namelist.

For SmartDataFields, it runs the disableField function. disableField is not a generic SmartDataField function, therefore this API is only supported for SmartDataFields that have disableField defined. If a field in the list is not found, or a SmartDataField without disableField is included in the list, disableWidget returns FALSE.

Location: visual.p

Parameters:

INPUT namelist AS CHARACTER

The name of one or more objects, separated by commas.

Returns: LOGICAL

Notes:

The following illustrates the use of this method in 4GL code for use with a graphical user interface:

IF widgetValue("Browse.Terms":U) NE "":U THEN 
 disableWidget("Self.Discount":U). 

The following illustrates the use of this method in DHTML code for use with a Web browser:

if (logic.widgetValue(‘orderfullo.browse.terms’)!=’’) 
  logic.disableWidget(‘customerviewv.discount’); 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095